package com.wisdom.admin.component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author ming
 * @ClassName CancelOrderReceiver.java
 * @Description 取消订单接收者
 * @createTime 2021年03月30日 21:35:00
 */
@Component
@RabbitListener(queues = "wisdom.order.cancel")
public class CancelOrderReceiver {
    private static final Logger LOGGER = LoggerFactory.getLogger(CancelOrderReceiver.class);

    @RabbitHandler
    public void handle(Map order){
        LOGGER.info("receive delay message order:{}",order);
        //TODO(取消订单逻辑)
    }
}
